import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/week/star/gift/list${query}`,
    method: 'get',
  });
}

export function listGiftData(query) {
  return request({
    url: `/gift/list`,
    method: 'post',
    data:query
  });
}

export function listRoomTypeData() {
  return request({
    url: `/room-class/type?type=1&page=1&perPage=10000`,
    method: 'get',
  });
}


export function putData(form) {
  return request({
    url: `/week/star/gift/update`,
    method: 'put',
    data:form
  });
}

export function listDetailData(query) {
  return request({
    url: `/week/star/history/list${query}`,
    method: 'get',
  });
}

export function deleteData(form) {
  return request({
    url: `/week/star/gift/del`,
    method: 'put',
    data:form
  });
}